


def randomoperation(number1, number2)

	operation = 1 + rand(3);



	case operation
	when 1
	    answer = number1 * number2
	    whatOp = "multiplication"
	when 2
	     answer = number1 + number2
	      whatOp = "addition"
	when 3
	     answer = number1 - number2
	      whatOp = "subtraction"
	when 4
	    answer = number1 / number2
		 whatOp = "division"
	end


	puts "The operation does was #{whatOp}"
	puts "And the answer is: #{answer}"


end

puts "Enter the first number"
a = gets.chomp
puts "Enter the second number"
b= gets.chomp

puts randomoperation(a.to_i, b.to_i);